package com.byt.xmxb.fragment;

import android.os.Bundle;
import android.view.View;

import com.billy.cc.core.component.CC;
import com.byt.base.fragment.BaseFragment;
import com.byt.base.viewmodel.BaseViewModel;
import com.byt.xmxb.R;
import com.byt.xmxb.databinding.FragmentMyInfoBinding;

import androidx.annotation.NonNull;

/**
 * 类名称：  HomeFragment
 * 类描述：  界面
 */
public class MyInfoFragment extends BaseFragment<FragmentMyInfoBinding, BaseViewModel> {
    private static MyInfoFragment mfragment = null;
    public static MyInfoFragment newsInstance(){
        mfragment = new MyInfoFragment();
        return mfragment;
    }

    @Override
    public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        dataBinding.tvJumpLogin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                 CC.obtainBuilder("UserCenter")
                        .setActionName("login")
                        .build().call();
            }
        });
    }

    @Override
    public int getBindingVariable() {
        return 0;
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_my_info;
    }

    @Override
    public BaseViewModel getViewModel() {
        return null;
    }

    @Override
    protected void onRetryBtnClick() {

    }

    @Override
    protected String getFragmentTag() {
        return "HomeFragment";
    }

}
